module.exports = {
	// baseUrl:"http://172.168.1.70:8080", 
	devServer: {
		overlay: {
			wraning: false,
			errors: false
		},
		compress: true,
		hot: true,
		port: 8080,
		proxy: {
			'/api': {
				target: 'http://172.168.1.70:8080/api', //跨域到的地址
				// secure: BASE_URL.includes('https') ? false : true,
				changeOrigin: true,
				pathRewrite: {
					"^/api": ""
				}
			}
		}
	},
	lintOnSave: true,
	chainWebpack:config=>{
		config.plugin('html').tap(args=>{
			args[0].title="瑞丰项目管理系统"
			return args
		})
		
	}
}
